<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddMobileToManagersTable extends Migration
{
    private const TABLE = 'managers';

    public function up()
    {
        Schema::table(self::TABLE, function (Blueprint $table) {
            $table->string('mobile', 11)->default('')->comment('手机号码')->after('email');
        });
    }

    public function down()
    {
        Schema::table(self::TABLE, function (Blueprint $table) {
            $table->dropColumn('mobile');
        });
    }
}
